package anyproc

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func AnyProc(c *gin.Context) {
	switch c.Request.Method {
	case http.MethodGet:
		c.JSON(http.StatusOK, gin.H{"method": http.MethodGet})
	case http.MethodPost:
		c.JSON(http.StatusOK, gin.H{"method": http.MethodPost})
	default:
		c.JSON(http.StatusOK, gin.H{"method": "default"})
	}
}
